

<%@ page import="org.tailor.Regions" %>
<html>
    <head>
       
        <meta name="layout" content="mainlayout" />
        <g:set var="entityName" value="${message(code: 'regions.label', default: 'Regions')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="col_middle">
            
     
       
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${regionsInstance}">
            <div class="errors">
                <g:renderErrors bean="${regionsInstance}" as="list" />
            </div>
            </g:hasErrors>
           <g:form  method="post" controller="regions" action="save" enctype="multipart/form-data">
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="regionID"><g:message code="regions.regionID.label" default="Region ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: regionsInstance, field: 'regionID', 'errors')}">
                                    <g:textField name="regionID" value="${fieldValue(bean: regionsInstance, field: 'regionID')}" />
                                <br/><br/>	
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="regionName"><g:message code="regions.regionName.label" default="Region Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: regionsInstance, field: 'regionName', 'errors')}">
                                    <g:textField name="regionName" value="${regionsInstance?.regionName}" />
                                <br/><br/>	
                                </td>
                            </tr>
                            
                            <tr class="prop">
							<td valign="top" class="name"><label for="regionPicture"><g:message
										code="shirt.regionPicture.label" default="Region Picture" />
							</label></td>
							<td valign="top"
								class="value ${hasErrors(bean: shirtInstance, field: 'regionPicture', 'errors')}">
                                <input type="file"  name="regionPicture"  id="regionPicture" size="10" />                  

							    <br/><br/>							
							</td>
						</tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="regions.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: regionsInstance, field: 'description', 'errors')}">
                                    <g:textField name="description" value="${regionsInstance?.description}" />
                                <br/><br/>	
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
         </body>
</html>
